{include file='_header.tpl'}

<h3>Редактирование/создание раздачи</h3>

<form method="post" action="{$SCRIPT_URL}&a={$ACTIONS_DISTR_FORM}&filmid={$filmid}&action=form">
    <input type="hidden" name="id" value="{$d_id}" />
    <table border="0">
        <tr>
            <td>Тип раздачи</td>
            <td><select name="type">
                    {foreach from=$distrTypes key=dTypeName item=dTypeValue}
                        <option value="{$dTypeValue}"{if $dTypeValue==$d_type} selected{/if}>{$dTypeName}</option>
                    {/foreach}
                </select></td>
        </tr>
        <tr>
            <td>Статус раздачи</td>
            <td><select name="status">
                    {foreach from=$distrStatutes key=dStatus item=dStatusStr}
                        <option value="{$dStatus}"{if $dStatus==$d_status} selected{/if}>{$dStatusStr}</option>
                    {/foreach}
                </select>
            </td>
        </tr>
        <tr>
            <td>URL раздачи:</td>
            <td><input type="text" name="url" value="{$d_url}" /></td>
        </tr>
        <tr>
            <td colspan="2"><center><input type="submit" /></center></td>
        </tr>
    </table>
</form>

{include file='_footer.tpl'}